<?php
$this->breadcrumbs = array(
    'Weights' => array('index'),
    'Manage',
);

$this->menu = array(
    array('label' => 'List Weight', 'url' => array('index')),
    array('label' => 'Create Weight', 'url' => array('create')),
);
?>
<?php echo Grape::headTitleDesc("Manage Weights"); ?>
<div class='grid_12'>
    <div class='block-border'>
        <div class='block-header'>
            <h1>Manage Weights</h1>
            <span></span>
        </div>
        <div class='block-content'>
            <?php
            $this->widget('zii.widgets.grid.CGridView', array(
                'id' => 'weight-grid',
                'dataProvider' => $model->search(),
                'filter' => $model,
                'columns' => array(
                    'weightId',
                    'foodId',
                    'sequenceNumber',
                    'amount',
                    'Description',
                    'gramWeight',
                    array(
                        'class' => 'CButtonColumn',
                    ),
                ),
            ));
            ?>
        </div>
    </div>
</div>
<div class='clear'></div>